package com.mvp.lt.airlineview.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * $activityName
 * 广告
 *
 * @author LiuTao
 * @date 2019/3/13/013
 */


public class AdvertData implements Parcelable {
    private String title;
    private String company;
    private String money;
    private String time;
    private String distance;
    private int status;
    private String content;

    public AdvertData() {
    }

    public AdvertData(String title, String company, String money, String time,
                      String distance, int status, String content) {
        this.title = title;
        this.company = company;
        this.money = money;
        this.time = time;
        this.distance = distance;
        this.status = status;
        this.content = content;
    }


    protected AdvertData(Parcel in) {
        title = in.readString();
        company = in.readString();
        money = in.readString();
        time = in.readString();
        distance = in.readString();
        status = in.readInt();
        content = in.readString();
    }

    public static final Creator<AdvertData> CREATOR = new Creator<AdvertData>() {
        @Override
        public AdvertData createFromParcel(Parcel in) {
            return new AdvertData(in);
        }

        @Override
        public AdvertData[] newArray(int size) {
            return new AdvertData[size];
        }
    };

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(title);
        parcel.writeString(company);
        parcel.writeString(money);
        parcel.writeString(time);
        parcel.writeString(distance);
        parcel.writeInt(status);
        parcel.writeString(content);
    }

    @Override
    public String toString() {
        return "AdvertData{" +
                "title='" + title + '\'' +
                ", company='" + company + '\'' +
                ", money='" + money + '\'' +
                ", time='" + time + '\'' +
                ", distance='" + distance + '\'' +
                ", status=" + status +
                ", content='" + content + '\'' +
                '}';
    }
}
